package statics;

class Animal {
	static void doStuff() {
		System.out.println("a ");
	}
}

public class Dog extends Animal {
	static void doStuff() {
		System.out.println("d ");
	}
	
	public static void main(String[] args) {
		Animal[] a = {new Animal(), new Dog(), new Animal()};
		for (int x = 0; x < a.length; x++) {
			a[x].doStuff();
		}
		
		Dog d = new Dog();
		Dog.doStuff();
	}
}
